package com.yasaka.stock.service;

import com.yasaka.stock.dao.EclAuthMapper;
import com.yasaka.stock.vo.EclAuthVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

@Service
@Transactional
public class EclAuthService {

    @Resource
    EclAuthMapper eclAuthMapper;

    EclAuthVo findByAppIdAndAppSecret(@Param("appId") String appId, @Param("appSecret") String appSecret){
        EclAuthVo eavo = eclAuthMapper.findByAppIdAndAppSecret(appId,appSecret);
        return eavo;
    }

}
